.q-table-t-total-cell {
  position: relative;
  vertical-align: bottom;
  background-color: var(--color-tertiary-white);
  border-bottom: 1px solid var(--color-tertiary-gray-dark);

  .q-table-t_grided &.q-table-t-total-cell {
    &:not(:last-child):not(.q-table-t-total-cell_sticked),
    &.q-table-t-total-cell_sticked_left:not(.q-table-t-total-cell_sticked_last),
    &.q-table-t-total-cell_sticked_right:not(.q-table-t-total-cell_sticked_first) {
      border-right: 1px solid var(--color-tertiary-gray-dark);
    }
  }

  .q-table:not(.q-table_has-color-groups) & {
    &:first-child {
      border-top-left-radius: var(--border-radius-base);
    }

    &:last-child {
      border-top-right-radius: var(--border-radius-base);
    }
  }

  &_sticked {
    position: sticky;
    z-index: 20;

    &_last {
      .q-table-t_grided & {
        border-right-width: 0;
      }

      &.q-table-t-total-cell_sticked {
        &_right {
          box-shadow: var(--table-box-shadow-inverted);
        }

        &_left {
          box-shadow: var(--table-box-shadow-base);
        }
      }
    }
  }

  &_align_right {
    text-align: right;
  }

  &__container {
    position: relative;
    z-index: 15;
    display: flex;
    align-items: center;
    height: 80px;
    padding: 12px 16px 11px 24px;

    .q-table-t-total-cell:first-child & {
      padding-left: 16px;
    }

    .q-table-t_grided
      .q-table-t-total-cell:not(:last-child):not(.q-table-t-total-cell_sticked)
      &,
    .q-table-t_grided
      .q-table-t-total-cell.q-table-t-total-cell_sticked_left:not(.q-table-t-total-cell_sticked_last)
      &,
    .q-table-t_grided
      .q-table-t-total-cell.q-table-t-total-cell_sticked_right:not(.q-table-t-total-cell_sticked_first)
      & {
      padding-right: 15px;
    }
  }

  &__content {
    width: 100%;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-base);
    line-height: var(--line-height-base);
    color: rgba(var(--color-rgb-gray), 0.64);
    letter-spacing: var(--letter-spacing-base);
  }
}
